<!DOCTYPE html>
<html>
  <head>
    <title>管理平台 - 阳毅商城</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <%= stylesheet_link_tag 'admin', media: 'all' %>
    <% if content_for? :csrf_tags %>
        <%= yield :csrf_tags %>
    <% else %>
        <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
        <%= csrf_meta_tags %>
    <% end %>
    <link rel="shortcut icon" type="image/x-icon" href="<%= image_path('favicon.ico') %>"/>
  </head>

  <body>
    <div id="app">
      <%= render 'admin/layouts/menu' %>
      <div class="container">
        <% unless flash[:notice].blank? %>
          <div class="alert alert-info"><%= flash[:notice] %></div>
        <% end -%>

        <%= yield %>
      </div>
    </div>

    <%= render partial: "admin/layouts/hidden" %>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <%= webpack_manifest_script %>
    <%= webpack_bundle_tag "admin" %>

  </body>
</html>
